let timer = true

export default (fn, time = 1500) => {
	if (timer) {
		timer = false
		fn()
		setTimeout(() => {
			timer = true
		}, time)
	}
}
